import { MockMethod } from 'vite-plugin-mock'

const menuList = [{
  "deleteStatus": "1",
  "id": "1134",
  "menuName": "菜单删除",
  "parentId": "113",
  "menuType": "B",
  "path": "",
  "perms": "delete",
  "icon": "",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1021",
  "menuName": "角色查询",
  "parentId": "112",
  "menuType": "B",
  "path": "",
  "perms": "system:role:query",
  "icon": "#",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1022",
  "menuName": "角色新增",
  "parentId": "112",
  "menuType": "B",
  "path": "",
  "perms": "system:role:add",
  "icon": "#",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1023",
  "menuName": "角色修改",
  "parentId": "112",
  "menuType": "B",
  "path": "",
  "perms": "system:role:update",
  "icon": "#",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1024",
  "menuName": "角色删除",
  "parentId": "112",
  "menuType": "B",
  "path": "",
  "perms": "system:role:delete",
  "icon": "#",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1131",
  "menuName": "菜单查询",
  "parentId": "113",
  "menuType": "B",
  "path": "",
  "perms": "system:menu:query",
  "icon": "",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1132",
  "menuName": "菜单新增",
  "parentId": "113",
  "menuType": "B",
  "path": "",
  "perms": "system:menu:add",
  "icon": "",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1133",
  "menuName": "菜单修改",
  "parentId": "113",
  "menuType": "B",
  "path": "",
  "perms": "system:menu:update",
  "icon": "",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "311",
  "menuName": "控制台",
  "parentId": "3",
  "menuType": "M",
  "component": "dashboard/console/index",
  "path": "console",
  "orderNum": "1",
  "visible": "1",
  "perms": "system:console",
  "icon": "console",
  "children": []
}, {
  "createBy": "123",
  "createTime": "2020-12-27 13:21:11",
  "deleteStatus": "1",
  "id": "160907527102436",
  "menuName": "代码生成",
  "parentId": "160907427614110",
  "menuType": "M",
  "component": "tool/generate/index",
  "path": "generate",
  "orderNum": "1",
  "visible": "1",
  "icon": "form",
  "children": []
}, {
  "createBy": "3123",
  "createTime": "2020-10-06 09:31:18",
  "deleteStatus": "1",
  "id": "160197667756218",
  "menuName": "访问日志",
  "parentId": "160197195503431",
  "menuType": "M",
  "component": "log/visitLog/index",
  "path": "visitLog",
  "orderNum": "1",
  "visible": "1",
  "icon": "user",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "111",
  "menuName": "用户管理",
  "parentId": "1",
  "menuType": "M",
  "component": "system/user/index",
  "path": "user",
  "orderNum": "1",
  "visible": "1",
  "perms": "system:user:list",
  "icon": "person",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1111",
  "menuName": "用户查询",
  "parentId": "111",
  "menuType": "B",
  "path": "",
  "orderNum": "1",
  "visible": "",
  "perms": "system:user:query",
  "icon": "#",
  "children": []
}, {
  "createBy": "123",
  "createTime": "2020-10-06 09:30:34",
  "deleteStatus": "1",
  "id": "160197663358925",
  "menuName": "登录日志",
  "parentId": "160197195503431",
  "menuType": "M",
  "component": "log/loginLog/index",
  "path": "loginLog",
  "orderNum": "1",
  "visible": "1",
  "icon": "table",
  "children": []
}, {
  "createBy": "3123",
  "createTime": "2020-10-06 09:30:55",
  "deleteStatus": "1",
  "id": "160197665541618",
  "menuName": "操作日志",
  "parentId": "160197195503431",
  "menuType": "M",
  "component": "log/operationLog/index",
  "path": "operationLog",
  "orderNum": "1",
  "visible": "1",
  "icon": "example",
  "children": []
}, {
  "deleteStatus": "1",
  "deleteBy": "123",
  "id": "211",
  "menuName": "数据监控",
  "parentId": "2",
  "menuType": "M",
  "component": "Iframe",
  "iframeSrc": "http://localhost:8080/dev-api/druid/login.html",
  "path": "druid",
  "orderNum": "1",
  "visible": "1",
  "perms": "monitor:druid:list",
  "icon": "link",
  "children": []
}, {
  "deleteStatus": "1",
  "deleteBy": "123",
  "id": "3",
  "menuName": "Dashboard",
  "parentId": "0",
  "menuType": "C",
  "component": "Layout",
  "path": "dashboard",
  "orderNum": "1",
  "visible": "1",
  "icon": "dashboard",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1",
  "menuName": "系统管理",
  "parentId": "0",
  "menuType": "C",
  "component": "Layout",
  "path": "system",
  "orderNum": "2",
  "visible": "1",
  "icon": "system",
  "children": []
}, {
  "createBy": "123",
  "createTime": "2021-10-25 14:47:24",
  "deleteStatus": "1",
  "id": "163517324384608",
  "menuName": "随便写",
  "parentId": "3",
  "menuType": "C",
  "component": "views/suibian ",
  "path": "suibian",
  "orderNum": "2",
  "visible": "1",
  "perms": "admin",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1012",
  "menuName": "用户新增",
  "parentId": "111",
  "menuType": "B",
  "path": "",
  "orderNum": "2",
  "perms": "system:user:add",
  "icon": "#",
  "children": []
}, {
  "deleteStatus": "1",
  "deleteBy": "123",
  "id": "212",
  "menuName": "服务监控",
  "parentId": "2",
  "menuType": "M",
  "component": "monitor/server/index",
  "path": "server",
  "orderNum": "2",
  "visible": "1",
  "perms": "monitor:server:list",
  "icon": "link",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "112",
  "menuName": "角色管理",
  "parentId": "1",
  "menuType": "M",
  "component": "system/role/index",
  "path": "role",
  "orderNum": "2",
  "visible": "1",
  "perms": "system:role:list",
  "icon": "eye",
  "children": []
}, {
  "createBy": "123",
  "createTime": "2020-12-27 13:04:36",
  "deleteStatus": "1",
  "id": "160907427614110",
  "menuName": "系统工具",
  "parentId": "0",
  "menuType": "C",
  "component": "Layout",
  "path": "tool",
  "orderNum": "3",
  "visible": "1",
  "icon": "system",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1013",
  "menuName": "用户修改",
  "parentId": "111",
  "menuType": "B",
  "path": "",
  "orderNum": "3",
  "perms": "system:user:update",
  "icon": "#",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "113",
  "menuName": "菜单管理",
  "parentId": "1",
  "menuType": "M",
  "component": "system/menu/index",
  "path": "menu",
  "orderNum": "3",
  "visible": "1",
  "perms": "system:menu:list",
  "icon": "link",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "1014",
  "menuName": "用户删除",
  "parentId": "111",
  "menuType": "B",
  "path": "",
  "orderNum": "4",
  "perms": "system:user:delete",
  "icon": "#",
  "children": []
}, {
  "createBy": "3123",
  "createTime": "2020-11-25 12:38:28",
  "deleteStatus": "1",
  "deleteBy": "123",
  "id": "160630790786678",
  "menuName": "系统接口",
  "parentId": "2",
  "menuType": "M",
  "component": "Iframe",
  "iframeSrc": "http://localhost:8080/dev-api/swagger-ui.html",
  "path": "swagger",
  "orderNum": "4",
  "visible": "1",
  "perms": "monitor:swagger:list",
  "icon": "table",
  "children": []
}, {
  "createBy": "123",
  "createTime": "2020-10-06 08:12:35",
  "deleteStatus": "1",
  "id": "160197195503431",
  "menuName": "系统日志",
  "parentId": "0",
  "menuType": "C",
  "component": "Layout",
  "path": "log",
  "orderNum": "4",
  "visible": "1",
  "icon": "dashboard",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "114",
  "menuName": "字典管理",
  "parentId": "1",
  "menuType": "M",
  "component": "system/dict/index",
  "path": "dict",
  "orderNum": "4",
  "visible": "1",
  "perms": "system:dict:list",
  "icon": "nested",
  "children": []
}, {
  "deleteStatus": "1",
  "id": "2",
  "menuName": "系统监控",
  "parentId": "0",
  "menuType": "C",
  "component": "Layout",
  "path": "monitor",
  "orderNum": "5",
  "visible": "1",
  "icon": "link",
  "children": []
}, {
  "createBy": "123",
  "createTime": "2020-10-05 15:40:44",
  "deleteStatus": "1",
  "id": "160191244384531",
  "menuName": "公告管理",
  "parentId": "1",
  "menuType": "M",
  "component": "system/notice/index",
  "path": "notice",
  "orderNum": "5",
  "visible": "1",
  "icon": "example",
  "children": []
}, {
  "createBy": "3123",
  "createTime": "2020-12-21 12:07:54",
  "deleteStatus": "1",
  "id": "160855247378765",
  "menuName": "文件管理",
  "parentId": "1",
  "menuType": "C",
  "component": "system/file/index",
  "path": "file",
  "orderNum": "6",
  "visible": "1",
  "perms": "system:file:list",
  "icon": "dashboard",
  "children": []
}, {
  "createBy": "3123",
  "createTime": "2020-10-12 12:37:52",
  "deleteStatus": "1",
  "id": "160250627240365",
  "menuName": "友情链接管理",
  "parentId": "1",
  "menuType": "M",
  "component": "system/link/index",
  "path": "link",
  "orderNum": "7",
  "visible": "1",
  "icon": "link",
  "children": []
}, {
  "createBy": "123",
  "createTime": "2020-10-05 15:43:28",
  "deleteStatus": "1",
  "id": "160191260780523",
  "menuName": "轮播图管理",
  "parentId": "1",
  "menuType": "M",
  "component": "system/carousel/index",
  "path": "carousel",
  "orderNum": "8",
  "visible": "1",
  "icon": "轮播图管理",
  "children": []
}]

export default [
  {
    url: '/mock/system/menu/list',
    method: 'get',
    response: ({ query }) => {
      return {
        code: 200,
        data: menuList,
        total: 33,
        message: ''
      }
    }
  },
  {
    url: '/mock/system/menu/getTreeSelectByRoleId/12',
    method: 'get',
    response: ({ query }) => {
      return {
        code: 200,
        data: ["1012", "1021", "111", "1111"],
        message: '操作成功'
      }
    }
  }
] as MockMethod[]